package com.suoyue.store.mapper;

import com.suoyue.store.entity.Cart;
import com.suoyue.store.entity.CartObject;

import java.util.List;

public interface CartMapper {
    List<CartObject> findCartByUid(Integer uid);

    Cart findCartByUidAndPid(Integer uid, Integer pid);

    Integer insertCart(Integer uid,Integer pid,Integer num);

    Integer addCartByCid(Integer cid);

    Integer minusCartByCid(Integer cid);

    Integer deleteCartByCid(Integer cid);

    Integer deleteAllCartByUid(Integer uid);

}
